package com.example.shop_2305.adapter

import android.widget.CheckBox
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_base.entity.Cart
import com.example.lib_base.entity.OrderDetail
import com.example.shop_2305.R
import com.example.shop_2305.utils.GlideUtils

class CreateOrderAdapter:BaseQuickAdapter<OrderDetail,BaseViewHolder>(R.layout.item_createorder) {
    override fun convert(holder: BaseViewHolder, item: OrderDetail) {
        GlideUtils.loadNormal(context,item.image,holder.getView(R.id.cart_image))
        holder.setText(R.id.cart_name,item.productName)
        holder.setText(R.id.cart_suk,"属性:${item.sku}")
        holder.setText(R.id.cart_price,"￥${item.price}")
        holder.setText(R.id.cart_num,"X ${item.payNum}")//不能直接给int

    }
}